package com.tran.app.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.tran.app.data.Teacher

@Dao
interface TeacherDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertTeacher(teacher: Teacher)

    @Query("SELECT * FROM teachers WHERE account = :account")
    suspend fun getTeacherByAccount(account: String): Teacher?

    // 其他你需要的方法，如更新、删除等
}